package com.ph.shopping.facade.mapper;

import com.ph.shopping.common.core.base.BaseMapper;

import cm.ph.shopping.facade.order.entity.PhMerchantOrderProducts;
import cm.ph.shopping.facade.order.vo.PhMerchantOrderProductsVo;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PhMerchantOrderProductsMapper extends BaseMapper<PhMerchantOrderProducts>{

    /**
     * 新增订单商品关联数据
     * @param phMerchantOrderProductsList
     * @param orderId
     * @return
     */
    int insertMerchantOrderProducts(@Param(value = "list") List<PhMerchantOrderProducts> phMerchantOrderProductsList,
                                        @Param(value = "orderId") Long orderId);
    
    /**
     *查询订单下的商品 
     * @param orderProductsVo
     * @return
     *@author  yyg
     */
    List<PhMerchantOrderProductsVo> findOrderProducts(PhMerchantOrderProductsVo orderProductsVo);
	
}

	